﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using SolidPrinciples.DependencyInversion.BusinessLayer;
using SolidPrinciples.DependencyInversion.DataAccessLayer;

namespace SolidPrinciples.DependencyInversion.UserInterfaceLayer
{
    public partial class PointOfSaleTerminalView : Form
    {
        public PointOfSaleTerminalView()
        {
            InitializeComponent();
        }

        public event EventHandler<NewProductRegisterPressEventArgs> NewProductRegisterPressed;

        public void Show(IEnumerable<Product> products)
        {
        }

        public void ShowSumToPay(decimal sumToPay)
        {
        }
    }

    public class NewProductRegisterPressEventArgs : EventArgs
    {
        public string ProductSku { get; private set; }

        public int Amount { get; private set; }
    }
}